#ifndef _THROTTLE_H_
#define _THROTTLE_H_

#define THROTTLE_INCREMENT  0.05

typedef struct
{
	float throttle;
//	float savethrottle;
	unsigned char idlethrflag;
	unsigned short idlethrcnt;
}THR;

extern THR Thr;

void Throttle_update(unsigned char thrmode,float dt);
void Throttle_Stablize_Runtask(float dt);
void Throttle_Alt_Runtask(float dt);
void Throttle_Auto_Runtask(float dt);
void Throttle_Land_Runtask(float dt);
void Land_Check(void);
void Land_Strikcheck(void);
float Throttle_Get(void);
void Throttle_Reset(void);
#endif


